package cn.edu.wfu.libautobook.mapper;

import cn.edu.wfu.libautobook.bean.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("SELECT * FROM wfu_user WHERE username = #{username}")
    User queryUserByUsername(String username);
}
